# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=depthcharge-tools
pkgver=0.5.0
pkgrel=0
pkgdesc="Tools to manage the Chrome OS bootloader"
url="https://github.com/alpernebbi/depthcharge-tools"
# other arches blocked by vboot-utils
arch="armhf armv7 aarch64 x86_64 x86"
license="GPL-2.0-or-later"
depends="
	cgpt
	dtc
	gzip
	lz4
	py3-setuptools
	u-boot-tools
	vboot-utils
	xz
"
source="$pkgname-$pkgver.tar.gz::https://github.com/alpernebbi/depthcharge-tools/archive/refs/tags/v$pkgver.tar.gz"
options="!check"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
5675e4cd61289047a9bbf90d713ad2d7799d6bd751aee6adf8ffd59bf3ce0ed0b8403dcd82733d120971f86698233f1b534d172106b55e3ef44978ac91074584  depthcharge-tools-0.5.0.tar.gz
"
